package com.ecoolex.hotel.saas.core.mapper;

import com.ecoolex.framework.common.annotation.Description;
import com.ecoolex.hotel.saas.entity.SalesUserWalletDetail;
import com.ecoolex.hotel.saas.entity.SalesUserWalletDetailExample;
import java.util.List;
import org.apache.ibatis.annotations.Param;
import org.springframework.lang.NonNull;

public interface SalesUserWalletDetailMapper {
    long countByExample(SalesUserWalletDetailExample example);

    int deleteByExample(SalesUserWalletDetailExample example);

    int deleteByPrimaryKey(Integer detailId);

    int insert(SalesUserWalletDetail record);

    int insertSelective(@Param("record") SalesUserWalletDetail record, @Param("selective") SalesUserWalletDetail.Column ... selective);

    SalesUserWalletDetail selectOneByExample(SalesUserWalletDetailExample example);

    List<SalesUserWalletDetail> selectByExample(SalesUserWalletDetailExample example);

    SalesUserWalletDetail selectByPrimaryKey(Integer detailId);

    SalesUserWalletDetail selectByPrimaryKeyWithLogicalDelete(@Param("detailId") Integer detailId, @Param("andLogicalDeleted") boolean andLogicalDeleted);

    int updateByExampleSelective(@Param("record") SalesUserWalletDetail record, @Param("example") SalesUserWalletDetailExample example, @Param("selective") SalesUserWalletDetail.Column ... selective);

    int updateByExample(@Param("record") SalesUserWalletDetail record, @Param("example") SalesUserWalletDetailExample example);

    int updateByPrimaryKeySelective(@Param("record") SalesUserWalletDetail record, @Param("selective") SalesUserWalletDetail.Column ... selective);

    int updateByPrimaryKey(SalesUserWalletDetail record);

    int batchInsert(@Param("list") List<SalesUserWalletDetail> list);

    int batchInsertSelective(@Param("list") List<SalesUserWalletDetail> list, @Param("selective") SalesUserWalletDetail.Column ... selective);

    int logicalDeleteByExample(@Param("example") SalesUserWalletDetailExample example);

    int logicalDeleteByPrimaryKey(Integer detailId);
}